package gjtx2;

import java.util.Scanner;

public class Job1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        StringBuffer sb = new StringBuffer();
        System.out.println("请输入字符串：");
        String a = in.next();
        char[] b=a.toCharArray();
        for (int i=0;i<a.length();i++){
            int c=b[i];
            if (c>=48&&c<=57){
                System.out.print(b[i]);
            }
        }

    }
}
